//
// Created by yzpang on 2025/5/19.
//
#include "LinkList.h"


/**
 * free()函数释放空间后,指针还是指向之前的地址
 */
void testFreeNode() {
    Link p;
    ElemType e = 5;
    MakeNode(&p, e);
    printf("%d\t%p\n", p->data, p);
    free(p);
    printf("%d\t%p\n", p->data, p);
}

int main() {
    testFreeNode();
    return 0;
}